<%@ page language="java" contentType="text/html;charset=UTF-8" %>
<%@ include file="../../inc/global.jsp" %>
<table>
    <tr>
        <th style="width:120px;">名称</th>
        <th>前缀URI</th>
        <th>后缀URI</th>
        <th style="text-align:center;width:120px;">排序</th>
        <th style="text-align:center;width:50px;">修改</th>
        <th style="text-align:center;width:120px;"><a href="###" class="add">添加根节点</a></th>
        <th style="text-align:center;width:80px;"><fmt:message key="jsp.table.mall.admin.nav.attr.manage"/></th>
    </tr>
    <c:forEach var="item" items="${navs}">
        <tr id="${item.id}">
            <td style="text-align: left">
                <c:forEach begin="0" end="${item.layer}" varStatus="s">&nbsp;&nbsp;&nbsp;</c:forEach>
                <c:if test="${item.layer > 0}">|</c:if>
                ${item.name}
            </td>
            <td>${item.prefixURI}</td>
            <td>${item.suffixURI}</td>
            <td style="text-align:center">
                <a href="###" class="up">[向上]</a>
                &nbsp;
                &nbsp;
                <a href="###" class="down">[向下]</a>
            </td>
            <td style="text-align:center;">
                <a href="###" class="edit">修改</a>
            </td>
            <td style="text-align:center;">
                <a href="###" class="add">添加子节点</a>
            </td>
            <td style="text-align:center;">
                <a href="/mall/adm/nav/attr?navId=${item.id}"><fmt:message key="jsp.table.mall.admin.nav.attr.manage"/></a>
            </td>
        </tr>
    </c:forEach>
</table>